home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / sdiff.z / sdiff
Text File  |  1998-10-20  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. SSSSDDDDIIIIFFFFFFFF((((1111))))                                                              SSSSDDDDIIIIFFFFFFFF((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sdiff - side-by-side difference program
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssddddiiiiffffffff [ options ... ] file1 file2
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _s_d_i_f_f uses the output of _d_i_f_f(1) to produce a side-by-side listing of two
  16.      files indicating those lines that are different.  Each line of the two
  17.      files is printed with a blank gutter between them if the lines are
  18.      identical, a <<<< in the gutter if the line only exists in _f_i_l_e_1, a >>>> in the
  19.      gutter if the line only exists in _f_i_l_e_2, and a |||| for lines that are
  20.      different.
  21.  
  22.      For example:
  23.  
  24.                      x    |    y
  25.                      a         a
  26.                      b    <
  27.                      c    <
  28.                      d         d
  29.                           >    c
  30.  
  31.      The following options exist:
  32.  
  33.      ----wwww  _n      Use the next argument, _n, as the width of the output line.
  34.                 The default line length is 130 characters.
  35.  
  36.      ----llll         Only print the left side of any lines that are identical.
  37.  
  38.      ----ssss         Do not print identical lines.
  39.  
  40.      ----oooo  _o_u_t_p_u_t Use the next argument, _o_u_t_p_u_t, as the name of a third file
  41.                 that is created as a user-controlled merging of _f_i_l_e_1 and
  42.                 _f_i_l_e_2.  Identical lines of _f_i_l_e_1 and _f_i_l_e_2 are copied to
  43.                 _o_u_t_p_u_t.  Sets of differences, as produced by _d_i_f_f(1), are
  44.                 printed; where a set of differences share a common gutter
  45.                 character.  After printing each set of differences, _s_d_i_f_f
  46.                 prompts the user with a %%%% and waits for one of the following
  47.                 user-typed commands:
  48.  
  49.                         llll    append the left column to the output file
  50.  
  51.                         rrrr    append the right column to the output file
  52.  
  53.                         ssss    turn on silent mode; do not print identical lines
  54.  
  55.                         vvvv    turn off silent mode
  56.  
  57.                         eeee  llll call the editor with the left column
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSDDDDIIIIFFFFFFFF((((1111))))                                                              SSSSDDDDIIIIFFFFFFFF((((1111))))
  71.  
  72.  
  73.  
  74.                         eeee  rrrr call the editor with the right column
  75.  
  76.                         eeee  bbbb call the editor with the concatenation of left
  77.                              and right
  78.  
  79.                         eeee    call the editor with a zero length file
  80.  
  81.                         qqqq    exit from the program
  82.  
  83.                 On exit from the editor, the resulting file is concatenated on
  84.                 the end of the _o_u_t_p_u_t file.
  85.  
  86. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  87.      diff(1), ed(1).
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.